<?php

use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;

class LinesTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
    	$lines = [
    		[
    			'id' => 1,
    			'company_id' => 1,
    			'project_id' => 1,
    			'name' => '巡检线路1',
    			'mistiming' => 10,
    			'created_at' => date('Y-m-d H:i:s'),
    			'updated_at' => date('Y-m-d H:i:s')
			],[
    			'id' => 2,
    			'company_id' => 1,
    			'project_id' => 1,
    			'name' => '巡检线路2',
    			'mistiming' => 10,
    			'created_at' => date('Y-m-d H:i:s'),
    			'updated_at' => date('Y-m-d H:i:s')
			],[
    			'id' => 3,
    			'company_id' => 1,
    			'project_id' => 1,
    			'name' => '巡检线路3',
    			'mistiming' => 10,
    			'created_at' => date('Y-m-d H:i:s'),
    			'updated_at' => date('Y-m-d H:i:s')
			],
		];

    	DB::table('lines')->insert($lines);
    }
}
